package top.songxs.gmall.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "app.thread-pool")
public class ThreadPoolProperties {

    int corePoolSize;    //核心线程数
    int maximumPoolSize;    //最大线程数
    long keepAliveTime ;      // 以毫秒为单位
    int workQueueSize;     //工作队列

}
